package com.ngkj.zmfptback.sys.service.write.impl;

import com.ngkj.zmfptback.sys.bean.RealUserEntity;
import com.ngkj.zmfptback.sys.mapper.write.RealUserWriteMapper;
import com.ngkj.zmfptback.sys.service.write.RealUserWriteService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

/**
 * @author ChenHN
 * @since 2022/1/9 creation
 **/
@Service
@Transactional(propagation = Propagation.REQUIRED)
public class RealUserWriteServiceImpl implements RealUserWriteService {

    @Resource
    private RealUserWriteMapper realUserWriteMapper;

    @Override
    public void updateRealUser(RealUserEntity realUser) {
        realUserWriteMapper.updateRealUser(realUser);
    }

    @Override
    public void addRealUser(RealUserEntity realUser) {
        realUserWriteMapper.addRealUser(realUser);
    }
}
